package com.sdy.supermarket.biz.vo;

import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 自建系统修改申请单
 * @author zhouziqiang 
 */
@Data
@Accessors(chain = true)
public class AppUpdateRequest {
    /**
     * 自建系统代码
     */
    private String code;
    private String name;
    private String content;
    /**
     * 是否默认。0 否， 1 是
     */
    private Integer def;
    /**
     * ip更改操作
     */
    private List<IpUpdateSubRequest> ipUpdateSubRequestList;

    /**
     * ip修改申请
     */
    @Data
    public static class IpUpdateSubRequest {
        private String originIp;
        private String newIp;
        /**
         * 1-新增IP 2-删除IP 3-修改IP 4-不改IP，只改接口
         */
        private Integer type;
        private List<Integer> addApiList;
        private List<Integer> delApiList;
    }
}
